#ifndef _SWAP_H_
#define _SWAP_H_
#include "stm32f10x.h"




typedef struct{
uint8_t header;
uint8_t type;
uint8_t remote;
uint8_t len;
uint32_t id;
uint8_t date[8];

}packet_t;

typedef struct{
uint8_t header;
uint8_t type;
uint8_t remote;
uint8_t len;
uint32_t id;
uint8_t date[30];

}usart_packet_t;

void uart2_to_can(void);

void can_to_uart2(void);




#endif

